Optimal. Leaf size=36 \[ \frac {\csc (x)}{a}+\frac {\csc ^2(x)}{2 a}-\frac {\csc ^3(x)}{3 a}+\frac {\log (\sin (x))}{a} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 36, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {3964, 76}
\begin {gather*} -\frac {\csc ^3(x)}{3 a}+\frac {\csc ^2(x)}{2 a}+\frac {\csc (x)}{a}+\frac {\log (\sin (x))}{a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 76
Rule 3964
Rubi steps
\begin {align*} \int \frac {\cot ^5(x)}{a+a \csc (x)} \, dx &=\frac {\text {Subst}\left (\int \frac {(a-a x)^2 (a+a x)}{x^4} \, dx,x,\sin (x)\right )}{a^4}\\ &=\frac {\text {Subst}\left (\int \left (\frac {a^3}{x^4}-\frac {a^3}{x^3}-\frac {a^3}{x^2}+\frac {a^3}{x}\right ) \, dx,x,\sin (x)\right )}{a^4}\\ &=\frac {\csc (x)}{a}+\frac {\csc ^2(x)}{2 a}-\frac {\csc ^3(x)}{3 a}+\frac {\log (\sin (x))}{a}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 26, normalized size = 0.72 \begin {gather*} \frac {\csc (x)+\frac {\csc ^2(x)}{2}-\frac {\csc ^3(x)}{3}+\log (\sin (x))}{a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.11, size = 25, normalized size = 0.69
method | result | size |
default | \(\frac {\ln \left (\sin \left (x \right )\right )+\frac {1}{2 \sin \left (x \right )^{2}}+\frac {1}{\sin \left (x \right )}-\frac {1}{3 \sin \left (x \right )^{3}}}{a}\) | \(25\) |
risch | \(-\frac {i x}{a}+\frac {2 i \left (3 i {\mathrm e}^{4 i x}+3 \,{\mathrm e}^{5 i x}-3 i {\mathrm e}^{2 i x}-2 \,{\mathrm e}^{3 i x}+3 \,{\mathrm e}^{i x}\right )}{3 a \left ({\mathrm e}^{2 i x}-1\right )^{3}}+\frac {\ln \left ({\mathrm e}^{2 i x}-1\right )}{a}\) | \(74\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 29, normalized size = 0.81 \begin {gather*} \frac {\log \left (\sin \left (x\right )\right )}{a} + \frac {6 \, \sin \left (x\right )^{2} + 3 \, \sin \left (x\right ) - 2}{6 \, a \sin \left (x\right )^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 3.56, size = 45, normalized size = 1.25 \begin {gather*} \frac {6 \, {\left (\cos \left (x\right )^{2} - 1\right )} \log \left (\frac {1}{2} \, \sin \left (x\right )\right ) \sin \left (x\right ) + 6 \, \cos \left (x\right )^{2} - 3 \, \sin \left (x\right ) - 4}{6 \, {\left (a \cos \left (x\right )^{2} - a\right )} \sin \left (x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \frac {\int \frac {\cot ^{5}{\left (x \right )}}{\csc {\left (x \right )} + 1}\, dx}{a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.41, size = 29, normalized size = 0.81 \begin {gather*} \frac {\frac {6 \, \sin \left (x\right )^{2} + 3 \, \sin \left (x\right ) - 2}{\sin \left (x\right )^{3}} + 6 \, \log \left ({\left | \sin \left (x\right ) \right |}\right )}{6 \, a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.30, size = 80, normalized size = 2.22 \begin {gather*} \frac {3\,\mathrm {tan}\left (\frac {x}{2}\right )}{8\,a}-\frac {\ln \left ({\mathrm {tan}\left (\frac {x}{2}\right )}^2+1\right )}{a}+\frac {{\mathrm {tan}\left (\frac {x}{2}\right )}^2}{8\,a}-\frac {{\mathrm {tan}\left (\frac {x}{2}\right )}^3}{24\,a}+\frac {\ln \left (\mathrm {tan}\left (\frac {x}{2}\right )\right )}{a}+\frac {3\,{\mathrm {tan}\left (\frac {x}{2}\right )}^2+\mathrm {tan}\left (\frac {x}{2}\right )-\frac {1}{3}}{8\,a\,{\mathrm {tan}\left (\frac {x}{2}\right )}^3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________